I'm currently working on an easy-to-use website editor (https://grimm.agency/?edit=true). My goal is to get the inner HTML of the editable Elements (each one has it's own id) and change the corresponding Elements text, in the existing HTML, accordingly. Right now I'm able to get the edited text and log it in the console, but I dont quiet know where to go from there. Any tipps welcome!
innerHTML = document.getElementById(e).innerHTML;
if (innerHTML.length > 5){´
console.log("pass file to php");
console.log(innerHTML);
} else {
console.log("file to small");
}
}